﻿using DataServer.ApplicationLib.Entities;
using Swimj.Core.DependencyInjection;
using Swimj.DataCore;

namespace DataServer.ApplicationLib.Repositories
{
    public interface IDataSourceRepository :  IScopedDependency
    {
        Task<Tuple<IEnumerable<DataSourceEntity>, int>> QueryFilterByPageAsync(ConditionCollection conditions,
            int pageIndex, int pageSize);

        Task<IEnumerable<DataSourceEntity>> QueryFilterAsync(ConditionCollection conditions);

        Task InsertAsync(DataSourceEntity dataSourceEntity);
    }
}